#include <REGX52.H>
#include"MDLED.h"

unsigned char AN[]={
	0xF8,0x08,0x04,0x04,0x02,0x02,0x01,0x01,
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
	0x80,0x80,0x80,0x80,0xE0,0x10,0x0F,0x0};

void main()
{
	unsigned char i=0,offset=0,count=0;
	MDLED_INIT();
	while(1)
	{
		for(i=0;i<8;i++)
		{
			LED_p0(i,AN[i+offset]);
		}
		count++;
		if(count>=10)
		{
			count=0;
			offset++;
		}
		if(offset>16)
		{
			offset=0;
		}
	}
}